package com.jlg.beans.groupon;


import com.jlg.search.SEARCH;
import com.julewa.db.DB;

/**
 *
 * author: huazhang
 * since : 2011-3-9
 */
public class GrouponBean
{
    @DB.KEY @SEARCH long id;
    @DB.COLUMN String url;
    @DB.COLUMN long grouponsiteid;
    @DB.COLUMN long locationid;
    @DB.COLUMN long shopid;
    @DB.COLUMN long categoryid;
    @DB.COLUMN int weight;
    @DB.COLUMN @SEARCH String title;
    @DB.COLUMN @SEARCH(parse=false) String imageurl;
    @DB.COLUMN long startTime;
    @DB.COLUMN long endTime;
    @DB.COLUMN double value;
    @DB.COLUMN double price;
    @DB.COLUMN float discount;
    @DB.COLUMN int maxQuantity = -1;
    @DB.COLUMN int minQuantity = -1;
    @DB.COLUMN int bought = -1;
    @DB.COLUMN @SEARCH String detail;
    
    public long getId()
    {
        return id;
    }
    public void setId(long id)
    {
        this.id = id;
    }
    public String getUrl()
    {
        return url;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }
    public long getGrouponsiteid()
    {
        return grouponsiteid;
    }
    public void setGrouponsiteid(long grouponsiteid)
    {
        this.grouponsiteid = grouponsiteid;
    }
    public long getLocationid()
    {
        return locationid;
    }
    public void setLocationid(long locationid)
    {
        this.locationid = locationid;
    }
    public long getShopid()
    {
        return shopid;
    }
    public void setShopid(long shopid)
    {
        this.shopid = shopid;
    }
    public long getCategoryid()
    {
        return categoryid;
    }
    public void setCategoryid(long categoryid)
    {
        this.categoryid = categoryid;
    }
    public int getWeight()
    {
        return weight;
    }
    public void setWeight(int weight)
    {
        this.weight = weight;
    }
    public String getTitle()
    {
        return title;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }
    public String getImageurl()
    {
        return imageurl;
    }
    public void setImageurl(String imageurl)
    {
        this.imageurl = imageurl;
    }
    public long getStartTime()
    {
        return startTime;
    }
    public void setStartTime(long startTime)
    {
        this.startTime = startTime;
    }
    public long getEndTime()
    {
        return endTime;
    }
    public void setEndTime(long endTime)
    {
        this.endTime = endTime;
    }
    public double getValue()
    {
        return value;
    }
    public void setValue(double value)
    {
        this.value = value;
    }
    public double getPrice()
    {
        return price;
    }
    public void setPrice(double price)
    {
        this.price = price;
    }
    public float getDiscount()
    {
        return discount;
    }
    public void setDiscount(float discount)
    {
        this.discount = discount;
    }
    public int getMaxQuantity()
    {
        return maxQuantity;
    }
    public void setMaxQuantity(int maxQuantity)
    {
        this.maxQuantity = maxQuantity;
    }
    public int getMinQuantity()
    {
        return minQuantity;
    }
    public void setMinQuantity(int minQuantity)
    {
        this.minQuantity = minQuantity;
    }
    public int getBought()
    {
        return bought;
    }
    public void setBought(int bought)
    {
        this.bought = bought;
    }
    public String getDetail()
    {
        return detail;
    }
    public void setDetail(String detail)
    {
        this.detail = detail;
    }
    
    
}
